/**
 * Phase 2a Simulator
 */
package fatboy.hypeerweb;

import static org.junit.Assert.assertEquals;

import org.junit.Test;


/**
 * @author Ilya Vinogradov
 *
 */
public class Phase2aDriver {
	private static Connection hypeerWeb;
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//this code is never executed from JUnit tests - Main method
		new Phase2aDriver().testOverAll();
		System.out.println("HyPeer Web:\n" + hypeerWeb);

	}
	/**
	 * runs a bunch of a basic insertion test on hypeerweb, 
	 * and checks that the last node has the correct surrogate pointers
	 * number
	 */
	@Test
	public void testOverAll(){
		hypeerWeb = new Connection();
		String s = "Goodbyu World!  Node #0";
		hypeerWeb.addNode(s);

		final int number = 14;
		for (Integer i = 1; i<=number; i++ ) {
			hypeerWeb.addNode("Node #" + i);
			
		}
		

	}
}
